<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>

<div class="easyui-panel" data-options="doSize:false,layoutH:47,border:false" style="margin:5px">
	<form method="post" action="/coupon/CouponPage@update.page" class="pageForm">
		<w:hidden bind="bean.id"/>
		<div class="ui-formContent">
			<p>
				<label style="width:130px;text-align:right">优惠劵名称：</label>
				<w:text bind="bean.name" style="width:300px;" styleClass="easyui-validatebox" dataOptions="required:true"/>
				<font class="red">*</font>
			</p>
			<p>
				<label style="width:130px;text-align:right">使用说明：</label>
				<w:text bind="bean.explanation" style="width:300px;"/>
			</p>
			<p>
				<label style="width:130px;text-align:right">使用范围：</label>
				<w:radio bind="bean.source" value="0" text="通用"/>
                <w:radio bind="bean.source" value="1" text="PC端"/>
                <w:radio bind="bean.source" value="2" text="微信"/>
			</p>
			<p>
				<label style="width:130px;text-align:right">优惠劵金额：</label>
				<w:text bind="bean.offer_money" style="width:300px;" styleClass="easyui-validatebox easyui-numberbox" dataOptions="required:true,min:0,precision:2,prefix:'￥'"/>
				元<font class="red">*</font>
			</p>
			<p>
				<label style="width:130px;text-align:right">最小订单金额：</label>
				<w:text bind="bean.min_money" style="width:300px;" styleClass="easyui-validatebox easyui-numberbox" dataOptions="required:true,min:0,precision:2,prefix:'￥'"/>
				元<font class="red">*</font>
			</p>
			<p>
				<label style="width:130px;text-align:right">有效期：</label>
				<w:text bind="bean.startdate" style="width:120px;height:30px;" styleClass="easyui-datetimebox" dataOptions="required:true"/>
				-
				<w:text bind="bean.enddate" style="width:120px;height:30px;" styleClass="easyui-datetimebox" dataOptions="required:true"/>
			</p>
			<p>
				<label style="width:130px;text-align:right">发放数量：</label>
				<w:text bind="bean.amount" style="width:300px;" styleClass="easyui-validatebox easyui-numberbox" dataOptions="required:true,min:0,precision:0"/>
				<font class="red">*</font>
			</p>
			<p>
				<label style="width:130px;text-align:right">每人限领取：</label>
				<w:text bind="bean.limit_num" style="width:300px;" styleClass="easyui-numberbox" dataOptions="precision:0"/>
			</p>
			<p>
				<label style="width:130px;text-align:right">状态：</label>
				<w:radio bind="bean.state" value="1" text="上架"/><w:radio bind="bean.state" value="0" text="下 架"/>
			</p>
		</div>
	</form>
</div>
<div class="ui-buttonBar">
	<a href="javascript:;" class="easyui-linkbutton marginR16" iconCls="icon_save" onclick="$w.doWinForm();">保 存</a>
	<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_cancel" onclick="$w.closeCurrWin()">取 消</a>
</div>
